
export const lineBarColor = ['#386DF2', '#FF9419', '#B366FF', '#F261F2', '#80FF80'];
export const defaultLineGradient = [
  ['rgba(56, 109, 242, 0.8)', 'rgba(105, 166, 250, 1)'],
  ['rgba(255, 148, 25, 0.8)', 'rgba(255, 148, 25, 0.6)']
];
const defaultGradientRed = ['#FD9393', '#FA5A5A'];

const defaultGradientblue = ['#3EA5F8', '#2F87F8'];
// 柱状图渐变色
export const lineColorGradient = [{
  barBorderRadius: [3, 3, 0, 0],
  color: {
    type: 'linear',
    x: 0,
    y: 1,
    x2: 0,
    y2: 0,
    colorStops: [
      {
        offset: 0,
        color: defaultLineGradient[0][1]
      },
      {
        offset: 1,
        color: defaultLineGradient[0][0]
      }
    ],
    globalCoord: false
  }
}, {
  shadowColor: 'rgba(64, 43, 43, 0.15)',
  shadowBlur: 10,
  shadowOffsetX: 0,
  shadowOffsetY: 5,
  color: '#386DF2'
}];

// 默认色板
export const color = [
  '#386DF2',
  '#32E8B4',
  '#00CEFF',
  '#0048FE',
  '#193988',
  '#ff69b4',
  '#ba55d3',
  '#cd5c5c',
  '#ffa500',
  '#40e0d0',
  '#1e90ff',
  '#ff6347',
  '#7b68ee',
  '#00fa9a',
  '#ffd700',
  '#6699FF',
  '#ff6666',
  '#3cb371',
  '#b8860b',
  '#30e0e0'
];
// 饼图默认5色
export const pieColor = [
  '#386DF2',
  '#00CEFF',
  '#2C82FF',
  '#0048FE',
  '#193988',
  '#32E8B4'
];

// 饼图默认5色
export const pieColor2 = [
  '#0757EC',
  '#FF4A08',
  '#00CEFF',
  '#032771',
  '#7F60FF',
  '#FF7A00',
  '#FFCA3B',
  '#6147FF',
  '#01B46B',
  '#FF7A00',
  '#FF6C97'
];

// 饼图默认3色
export const pieColor3 = [
  '#0048FE',
  '#193988',
  '#32E8B4'
];

// 饼图默认4色
export const pieColor4 = [
  '#A8C2FF',
  '#4277FF',
  '#0045F1'
];

// 饼图默认3色 (红色，蓝色)
export const pieColor5 = [
  '#FF6A98',
  '#386DF2'
];

// // 散点图默认色
// export const scatteColor = [
//   ['rgba(250, 90, 90, 1)', 'rgba(250, 90, 90, 0.4)']
// ];

// // 默认色板渐变
// export const linearColor = [
//   ['rgba(251, 123, 123, 0.15)', 'rgba(251, 123, 123, 0.05)'],
//   ['rgba(255, 148, 25, 0.15)', 'rgba(255, 148, 25, 0.05)']
// ];

// // 默认柱状图色板渐变
// export const linearBarColor = [
//   ['rgba(251, 123, 123, 0.6)', 'rgba(251, 123, 123, 0.3)']
// ];
// export const linearBarHoverColor = [
//   ['rgba(251, 123, 123, 1)', 'rgba(251, 123, 123, 0.6)']
// ];

// 默认dataZoom色板
export const dataZoomColor = {
  backgroundColor: 'rgba(56, 109, 242, .49)',
  lineColor: 'rgba(56, 109, 242, 1)'
};

export const wordCloudColor = [
  '#386DF2',
  '#FB8B8B',
  '#FC9C9C',
  '#FCACAC',
  '#FDCDCD'
];

// 饼图默认渐变2色 (红色，蓝色)
export const pieColorGradient = [{
  type: 'linear',
  x: 0,
  y: 0,
  x2: 1,
  y2: 1,
  colorStops: [
    {
      offset: 0,
      color: defaultGradientRed[0]
    },
    {
      offset: 1,
      color: defaultGradientRed[1]
    }
  ],
  globalCoord: false
}, {
  type: 'linear',
  x: 0,
  y: 0,
  x2: 1,
  y2: 1,
  colorStops: [
    {
      offset: 0,
      color: defaultGradientblue[0]
    },
    {
      offset: 1,
      color: defaultGradientblue[1]
    }
  ],
  globalCoord: false

}];
